﻿<%@ Page Language="C#" MasterPageFile="~/admin.master" AutoEventWireup="true" Inherits="MediaMonitor.Admin.Country_Mgmt" Title="Country Management" Theme="default" Codebehind="country-mgmt.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" Runat="Server">

<div class="Form">
    <table>
        <tr>
            <th>
               Select Country:
            </th>
            <td style="padding-left:30px;"> 
                <asp:DropDownList ID="lstCountry" runat="server" AutoPostBack="true"  OnSelectedIndexChanged="lstCountry_SelectedIndexChanged" OnDataBound="lstCountry_DataBound"
                     DataSourceID="sqlDSCountry"
                     DataTextField="CountryName"
                     DataValueField="CountryID" Font-Size="16" Height="35" >
                
                </asp:DropDownList>

                
            </td>
        </tr>
        <tr><td colspan="2"><br /><br /></td></tr>
        <tr>
            <th>
                Select Media Type</th>
            <td>
                <asp:CheckBoxList ID="lstMediaType" runat="server" Font-Size="20" Font-Bold="true"  CellSpacing="30"
                 DataSourceID="sqlDSMediaType"
                 DataTextField="MediaTypeName"
                 DataValueField="MediaTypeCode"
                 RepeatColumns="3"
                 RepeatDirection="Horizontal"   />
 
            </td>
        </tr>

        <tr>
            <td></td>
            <td style="padding-left: 30px;"><br /><br />
                <asp:ImageButton ID="btnSave" runat="server" SkinID="Save" OnClick="btnSave_Clicked" />
                <br /><br />

                <asp:Label ID="lblMsg" runat="server" SkinID="Error" />
            </td>
        </tr>
    </table>
</div>

<asp:SqlDataSource ID="sqlDSCountry" runat="server" ConnectionString='<%$ConnectionStrings:DBAdex%>' SelectCommand="SELECT * FROM Country WHERE Active=1"></asp:SqlDataSource>

    <asp:SqlDataSource ID="sqlDSMediaType" runat="server" ConnectionString='<%$ConnectionStrings:DBAdex%>'
        SelectCommand="SELECT * FROM MediaType"></asp:SqlDataSource>

</asp:Content> 

